package day01;

public class VarTest{
	public static void main(String[]args){
		int i = 10;
		System.out.println(i);
		byte b = 10;//-128~127
		//b = 128;
		//b=-129;
		short s;
		s = 32767;//-32768~32767
		//s = 32768;
		i = 2147483647;
		//i = 2147483648;
		long l = 2147483648L;
		
		b = 011;//9
		System.out.println(b);
		//b = 018;
		b = 0x55;//5*16+5=85
		System.out.println(b);
		b = 100;
		System.out.println(b);
		float f = 3.14f;
		double d = 3.14;
		d = 3.14E3;
		System.out.println(d);
		d = 12.5E300;
		System.out.println(d);
		char c = 'A';
		System.out.println(c);
		c = 'a';
		System.out.println((int)c);
		System.out.println("Hello \n World!");
		System.out.print("abcde\babcde\n");
		System.out.print("aaaaaaaaa\r");
		System.out.print("bbbb");
		System.out.println();
		//c = "A";
		//c = 'asdf';
		String str = "Hello";
		str = str + " World, "+"Haha";
		System.out.println(str);
		str = 10 + 20 + str + 10 + 20;
		System.out.println(str);
		boolean bool = true;
		bool = 3 < 2;
		System.out.println(bool);
		
		byte b1;
		int i1 = 10;
		//b1 = i1;
		b1 = 10;
		i1 = b1;
		b1 = (byte)i1;
		System.out.println(b1);
		
		i1 = 130;
		b1 = (byte)i1;
		System.out.println(b1);
		System.out.println("=================");
		char c1 = '0'+5;
		char c2 = 48;
		int i2 = '0';
		System.out.println(c1);//5
		System.out.println(c2);//0
		System.out.println(i2);//48
	}
}